export default ({
    $axios,
    redirect,
    store
  }) => {
    $axios.onRequest((config) => {
        if (store.state.user.token) {
          config.headers.Authorization = 'Bearer ' + store.state.user.token
        }
      }
    )
  }